package net.vkits.api;

import io.swagger.annotations.*;
import net.vkits.common.dto.SignDTO;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Created by ethan-liu on 2016/11/25.
 */
@Api(value = "payment", description = "支付接口")
@RequestMapping("/api/v2")
public interface PaymentApi {
    @ApiOperation(value = "sign", notes = "对订单信息签名", response = SignDTO.class, tags={ "payment", })
    @ApiResponses(value = {
            @ApiResponse(code = 200, message = "签名成功", response = SignDTO.class),
            @ApiResponse(code = 404, message = "签名失败", response = String.class) })
    @RequestMapping(value = "/sign",
            produces = { "application/json" },
            method = RequestMethod.POST)
    ResponseEntity<SignDTO> sign(@ApiParam(value = "签名信息", required = true) @RequestParam(value = "orderId") String orderId);
}
